<template>
    <div>
        <h1>注册</h1>
        <button @click="gohome">返回首页</button>
    </div>
</template>

<script>
import { defineComponent } from 'vue'
import { useRouter } from "vue-router";
export default defineComponent({
    setup () {
        const router = useRouter()
        const gohome = ()=>{
            router.push({
                name:"home"
            })
        }

        return {gohome}
    }
})
</script>

<style scoped>

</style>